import {createApp} from 'vue'
import ElementPlus from 'element-plus'
// global css
import 'element-plus/dist/index.css'
import './scss/index.scss';
import directive from '@/directive';
import 'virtual:svg-icons-register'
import SvgIcon from '@/components/SvgIcon'
import App from './App.vue'

const app = createApp(App)
app.use(ElementPlus)
app.component('SvgIcon', SvgIcon)
// 引入全局自定义指令
Object.keys(directive)
    .forEach(item => {
        app.directive(item, directive[item]);
    });
app.mount('#app')
